<?PHP
	if(isset($args['form']) && $args['form']->id == 1){
		$language = DataBase::Current()->EscapeString($args['form']->GetValue("token"));
		$language = strtoupper($language);
		DataBase::Current()->Execute("CREATE TABLE `cl_languagepack_".$language."_global` (
										`token` varchar(255) NOT NULL,
										`text` text NOT NULL,
										PRIMARY KEY  (`token`)
									  ) ENGINE=MyISAM DEFAULT CHARSET=latin1;");
	}
?>